<!DOCTYPE html>
<html lang="en-US">
	
<!-- Mirrored from vkuviewdoc.fsq.pub/components/card.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 May 2025 17:31:01 GMT -->
<head>
		<title>Card 卡片 | uView Vue3.0 横空出世，继承uView1.0意志，再战江湖，风云再起！</title>
		<meta charset="utf-8">
		<script>
		  var _hmt = _hmt || [];
		  (function() {
		    var hm = document.createElement("script");
		    hm.src = "../../hm.baidu.com/hm34bd.js?1d1565dd0782e66106e6a42c79ed2554";
		    var s = document.getElementsByTagName("script")[0]; 
		    s.parentNode.insertBefore(hm, s);
		  })();
		  </script>
		<meta name="description" content="同时支持 Vue3.0 和 Vue2.0，你没看错，现在 uView 支持 Vue3.0 了！（不支持nvue，此版本为uView1.0的分支）">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="keywords" content="vk-uview,uviewVue3.0,uview,uView,uviewui,uview ui,uviewUI,uViewui,uViewUI,uView UI,uni ui,uni UI,uni-app ui框架,uni-app UI框架,uniapp ui,ui,UI框架,uniapp ui框架,uniapp UI">
		<link rel="preload" href="../assets/css/0.styles.61168ff3.css" as="style"><link rel="preload" href="../assets/js/app.06a5b7ec.js" as="script"><link rel="preload" href="../assets/js/3.b1cc55a0.js" as="script"><link rel="preload" href="../assets/js/4.4b844322.js" as="script"><link rel="preload" href="../assets/js/30.26760ff7.js" as="script"><link rel="preload" href="../assets/js/19.2b0b9da7.js" as="script"><link rel="preload" href="../assets/js/9.ba52e2b0.js" as="script"><link rel="preload" href="../assets/js/6.2c513bee.js" as="script"><link rel="prefetch" href="../assets/js/1.98a9916e.js"><link rel="prefetch" href="../assets/js/10.038f08bd.js"><link rel="prefetch" href="../assets/js/100.a4e49f4f.js"><link rel="prefetch" href="../assets/js/101.5bb80e81.js"><link rel="prefetch" href="../assets/js/102.341da24c.js"><link rel="prefetch" href="../assets/js/103.59b833cd.js"><link rel="prefetch" href="../assets/js/104.a145c535.js"><link rel="prefetch" href="../assets/js/105.c8fea0c4.js"><link rel="prefetch" href="../assets/js/106.d1e658a7.js"><link rel="prefetch" href="../assets/js/107.5f95aed3.js"><link rel="prefetch" href="../assets/js/108.8d2b2544.js"><link rel="prefetch" href="../assets/js/109.10c99e03.js"><link rel="prefetch" href="../assets/js/11.8e74d8b9.js"><link rel="prefetch" href="../assets/js/110.4a7e9307.js"><link rel="prefetch" href="../assets/js/111.773e8680.js"><link rel="prefetch" href="../assets/js/112.c7465195.js"><link rel="prefetch" href="../assets/js/113.b86e8be8.js"><link rel="prefetch" href="../assets/js/114.9ba8246a.js"><link rel="prefetch" href="../assets/js/115.48e5c3e4.js"><link rel="prefetch" href="../assets/js/116.623d8a73.js"><link rel="prefetch" href="../assets/js/117.d9fc756d.js"><link rel="prefetch" href="../assets/js/118.668a7d9f.js"><link rel="prefetch" href="../assets/js/119.6ca5a6b7.js"><link rel="prefetch" href="../assets/js/12.1490d9ad.js"><link rel="prefetch" href="../assets/js/120.8008a6be.js"><link rel="prefetch" href="../assets/js/121.29c37c36.js"><link rel="prefetch" href="../assets/js/122.00c188a8.js"><link rel="prefetch" href="../assets/js/123.22e24add.js"><link rel="prefetch" href="../assets/js/124.e5837e2d.js"><link rel="prefetch" href="../assets/js/125.bd96786c.js"><link rel="prefetch" href="../assets/js/126.e58693e0.js"><link rel="prefetch" href="../assets/js/127.7df2a7cb.js"><link rel="prefetch" href="../assets/js/128.46d0d44f.js"><link rel="prefetch" href="../assets/js/129.533ad2e4.js"><link rel="prefetch" href="../assets/js/13.26869a5e.js"><link rel="prefetch" href="../assets/js/130.33870daa.js"><link rel="prefetch" href="../assets/js/131.6ed8ceeb.js"><link rel="prefetch" href="../assets/js/132.ddabb1d9.js"><link rel="prefetch" href="../assets/js/133.9ec99fba.js"><link rel="prefetch" href="../assets/js/134.ddf9fd84.js"><link rel="prefetch" href="../assets/js/135.c78b3861.js"><link rel="prefetch" href="../assets/js/136.9f35dad7.js"><link rel="prefetch" href="../assets/js/137.f76e23c3.js"><link rel="prefetch" href="../assets/js/138.527154ce.js"><link rel="prefetch" href="../assets/js/139.20fc60a7.js"><link rel="prefetch" href="../assets/js/14.f7c8080a.js"><link rel="prefetch" href="../assets/js/140.94a3c889.js"><link rel="prefetch" href="../assets/js/141.dbec7630.js"><link rel="prefetch" href="../assets/js/142.01e40518.js"><link rel="prefetch" href="../assets/js/143.e69db0a4.js"><link rel="prefetch" href="../assets/js/144.6b44c549.js"><link rel="prefetch" href="../assets/js/145.be0da9a2.js"><link rel="prefetch" href="../assets/js/146.cf66d7a5.js"><link rel="prefetch" href="../assets/js/147.0d33398d.js"><link rel="prefetch" href="../assets/js/148.7ec3725c.js"><link rel="prefetch" href="../assets/js/149.94b68d3b.js"><link rel="prefetch" href="../assets/js/15.9c539d25.js"><link rel="prefetch" href="../assets/js/150.a3cb5d67.js"><link rel="prefetch" href="../assets/js/151.353415e1.js"><link rel="prefetch" href="../assets/js/152.a0e625f0.js"><link rel="prefetch" href="../assets/js/153.9f9ff9df.js"><link rel="prefetch" href="../assets/js/154.3926195f.js"><link rel="prefetch" href="../assets/js/155.4ff0eab8.js"><link rel="prefetch" href="../assets/js/156.30421ecd.js"><link rel="prefetch" href="../assets/js/16.9311470f.js"><link rel="prefetch" href="../assets/js/17.1d2427af.js"><link rel="prefetch" href="../assets/js/18.9f71dea7.js"><link rel="prefetch" href="../assets/js/20.4e7fd7f2.js"><link rel="prefetch" href="../assets/js/21.eeb64d6d.js"><link rel="prefetch" href="../assets/js/22.eeed70a0.js"><link rel="prefetch" href="../assets/js/23.ebadd966.js"><link rel="prefetch" href="../assets/js/24.623888d6.js"><link rel="prefetch" href="../assets/js/25.997678dc.js"><link rel="prefetch" href="../assets/js/26.bdc2a6fc.js"><link rel="prefetch" href="../assets/js/27.14956264.js"><link rel="prefetch" href="../assets/js/28.3e836b17.js"><link rel="prefetch" href="../assets/js/29.88996b95.js"><link rel="prefetch" href="../assets/js/31.169925f0.js"><link rel="prefetch" href="../assets/js/32.fc848ffd.js"><link rel="prefetch" href="../assets/js/33.4a7b20b5.js"><link rel="prefetch" href="../assets/js/34.080a5b2d.js"><link rel="prefetch" href="../assets/js/35.5664384b.js"><link rel="prefetch" href="../assets/js/36.e6f2d7c1.js"><link rel="prefetch" href="../assets/js/37.7fffb245.js"><link rel="prefetch" href="../assets/js/38.2a818c4b.js"><link rel="prefetch" href="../assets/js/39.b75d1d1f.js"><link rel="prefetch" href="../assets/js/40.eebb261c.js"><link rel="prefetch" href="../assets/js/41.f590ad3d.js"><link rel="prefetch" href="../assets/js/42.3a5a9ad1.js"><link rel="prefetch" href="../assets/js/43.315af682.js"><link rel="prefetch" href="../assets/js/44.e699cfc9.js"><link rel="prefetch" href="../assets/js/45.070488b1.js"><link rel="prefetch" href="../assets/js/46.29f9b10c.js"><link rel="prefetch" href="../assets/js/47.a49c9691.js"><link rel="prefetch" href="../assets/js/48.901960ce.js"><link rel="prefetch" href="../assets/js/49.90f26de6.js"><link rel="prefetch" href="../assets/js/5.1822a725.js"><link rel="prefetch" href="../assets/js/50.d98ea474.js"><link rel="prefetch" href="../assets/js/51.7e81edb0.js"><link rel="prefetch" href="../assets/js/52.ae744cc4.js"><link rel="prefetch" href="../assets/js/53.a87579ea.js"><link rel="prefetch" href="../assets/js/54.09cf1cd4.js"><link rel="prefetch" href="../assets/js/55.8dbe32a9.js"><link rel="prefetch" href="../assets/js/56.4cc4e86e.js"><link rel="prefetch" href="../assets/js/57.5fa9755d.js"><link rel="prefetch" href="../assets/js/58.8a511947.js"><link rel="prefetch" href="../assets/js/59.7f699905.js"><link rel="prefetch" href="../assets/js/60.5cd6bf05.js"><link rel="prefetch" href="../assets/js/61.8e3a5252.js"><link rel="prefetch" href="../assets/js/62.c196204b.js"><link rel="prefetch" href="../assets/js/63.cf346896.js"><link rel="prefetch" href="../assets/js/64.0525bb5d.js"><link rel="prefetch" href="../assets/js/65.2d0a71fc.js"><link rel="prefetch" href="../assets/js/66.7155e206.js"><link rel="prefetch" href="../assets/js/67.40077362.js"><link rel="prefetch" href="../assets/js/68.5bf58e97.js"><link rel="prefetch" href="../assets/js/69.d955f75b.js"><link rel="prefetch" href="../assets/js/7.1d1f1c24.js"><link rel="prefetch" href="../assets/js/70.a8cce98b.js"><link rel="prefetch" href="../assets/js/71.da703543.js"><link rel="prefetch" href="../assets/js/72.c04dfa52.js"><link rel="prefetch" href="../assets/js/73.d07ef280.js"><link rel="prefetch" href="../assets/js/74.8461f6a0.js"><link rel="prefetch" href="../assets/js/75.b4e8bf21.js"><link rel="prefetch" href="../assets/js/76.2df0e4fa.js"><link rel="prefetch" href="../assets/js/77.80fba507.js"><link rel="prefetch" href="../assets/js/78.167eb1f2.js"><link rel="prefetch" href="../assets/js/79.8de07f16.js"><link rel="prefetch" href="../assets/js/8.70b4860e.js"><link rel="prefetch" href="../assets/js/80.62ae9ff8.js"><link rel="prefetch" href="../assets/js/81.6d66b374.js"><link rel="prefetch" href="../assets/js/82.3200cf78.js"><link rel="prefetch" href="../assets/js/83.1d9c3fce.js"><link rel="prefetch" href="../assets/js/84.d9f947a9.js"><link rel="prefetch" href="../assets/js/85.85a4c72a.js"><link rel="prefetch" href="../assets/js/86.93c948f9.js"><link rel="prefetch" href="../assets/js/87.468468cc.js"><link rel="prefetch" href="../assets/js/88.e5fe3f13.js"><link rel="prefetch" href="../assets/js/89.724b1038.js"><link rel="prefetch" href="../assets/js/90.16fb68a1.js"><link rel="prefetch" href="../assets/js/91.338ca55d.js"><link rel="prefetch" href="../assets/js/92.508f7300.js"><link rel="prefetch" href="../assets/js/93.50d169d1.js"><link rel="prefetch" href="../assets/js/94.54461a32.js"><link rel="prefetch" href="../assets/js/95.8f712236.js"><link rel="prefetch" href="../assets/js/96.4c8d5f01.js"><link rel="prefetch" href="../assets/js/97.da347ee4.js"><link rel="prefetch" href="../assets/js/98.94680b58.js"><link rel="prefetch" href="../assets/js/99.7d895609.js">
		<link rel="stylesheet" href="../assets/css/0.styles.61168ff3.css">
		<script>
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "../../hm.baidu.com/hm81c3.js?43e7eadc8f61e1e064906952da7d51f0";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();
		</script>
	</head>
	<body>
		<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="../index.html" class="home-link router-link-active"><img src="../common/logo.png" alt="uView Vue3.0 横空出世，继承uView1.0意志，再战江湖，风云再起！" class="logo"> <span class="site-name can-hide">uView</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="../guide/demo.html" class="nav-link">
  指南
</a></div><div class="nav-item"><a href="intro.html" class="nav-link">
  组件
</a></div><div class="nav-item"><a href="../js/intro.html" class="nav-link">
  JS
</a></div><div class="nav-item"><a href="../layout/intro.html" class="nav-link">
  模板
</a></div><div class="nav-item"><a href="resource.html" class="nav-link">
  资源
</a></div><div class="nav-item"><a href="https://ext.dcloud.net.cn/plugin?id=6692" target="_blank" rel="noopener noreferrer" class="nav-link external">
  插件市场
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://gitee.com/vk-uni/vk-uview-ui" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Gitee
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="DCloud插件市场" class="dropdown-title"><span class="title">VK其他插件</span> <span class="arrow down"></span></button> <button type="button" aria-label="DCloud插件市场" class="mobile-dropdown-title"><span class="title">VK其他插件</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=2204" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud-router（client端）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=5043" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud-admin（admin端）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=5642" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-uni-pay（统一支付）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=2848" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-data-goods-sku-popup（sku组件）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6692" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-uview-ui（uView Vue3.0）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6158" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-redis
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6089" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud数据库一键搬家工具
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6663" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-hbx插件（开发辅助工具）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/publisher?id=164406" target="_blank" rel="noopener noreferrer" class="nav-link external">
  查看更多
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="原版uView" class="dropdown-title"><span class="title">原版uView</span> <span class="arrow down"></span></button> <button type="button" aria-label="原版uView" class="mobile-dropdown-title"><span class="title">原版uView</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://v1.uviewui.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  1.X
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://uviewui.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  2.X
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div><aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="../guide/demo.html" class="nav-link">
  指南
</a></div><div class="nav-item"><a href="intro.html" class="nav-link">
  组件
</a></div><div class="nav-item"><a href="../js/intro.html" class="nav-link">
  JS
</a></div><div class="nav-item"><a href="../layout/intro.html" class="nav-link">
  模板
</a></div><div class="nav-item"><a href="resource.html" class="nav-link">
  资源
</a></div><div class="nav-item"><a href="https://ext.dcloud.net.cn/plugin?id=6692" target="_blank" rel="noopener noreferrer" class="nav-link external">
  插件市场
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://gitee.com/vk-uni/vk-uview-ui" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Gitee
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="DCloud插件市场" class="dropdown-title"><span class="title">VK其他插件</span> <span class="arrow down"></span></button> <button type="button" aria-label="DCloud插件市场" class="mobile-dropdown-title"><span class="title">VK其他插件</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=2204" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud-router（client端）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=5043" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud-admin（admin端）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=5642" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-uni-pay（统一支付）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=2848" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-data-goods-sku-popup（sku组件）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6692" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-uview-ui（uView Vue3.0）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6158" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-redis
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6089" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud数据库一键搬家工具
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6663" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-hbx插件（开发辅助工具）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/publisher?id=164406" target="_blank" rel="noopener noreferrer" class="nav-link external">
  查看更多
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="原版uView" class="dropdown-title"><span class="title">原版uView</span> <span class="arrow down"></span></button> <button type="button" aria-label="原版uView" class="mobile-dropdown-title"><span class="title">原版uView</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://v1.uviewui.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  1.X
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://uviewui.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  2.X
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>起步</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="addQQGroup.html" class="sidebar-link">加QQ群交流反馈</a></li><li><a href="intro.html" class="sidebar-link">介绍</a></li><li><a href="install.html" class="sidebar-link">安装</a></li><li><a href="quickstart.html" class="sidebar-link">快速上手</a></li><li><a href="common.html" class="sidebar-link">内置样式</a></li><li><a href="feature.html" class="sidebar-link">注意事项</a></li><li><a href="nvue.html" class="sidebar-link">Nvue排错指南</a></li><li><a href="changelog.html" class="sidebar-link">更新日志</a></li><li><a href="changeGuide.html" class="sidebar-link">升级指南</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>基础组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="color.html" class="sidebar-link">Color 色彩</a></li><li><a href="icon.html" class="sidebar-link">Icon 图标</a></li><li><a href="image.html" class="sidebar-link">Image 图片</a></li><li><a href="button.html" class="sidebar-link">Button 按钮</a></li><li><a href="layout.html" class="sidebar-link">Layout 布局</a></li><li><a href="cell.html" class="sidebar-link">Cell 单元格</a></li><li><a href="badge.html" class="sidebar-link">Badge 徽标数</a></li><li><a href="tag.html" class="sidebar-link">Tag 标签</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>表单组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="input.html" class="sidebar-link">Input 输入框</a></li><li><a href="form.html" class="sidebar-link">Form 表单</a></li><li><a href="calendar.html" class="sidebar-link">Calendar 日历</a></li><li><a href="select.html" class="sidebar-link">Select 列选择器</a></li><li><a href="keyboard.html" class="sidebar-link">Keyboard 键盘</a></li><li><a href="picker.html" class="sidebar-link">Picker 选择器</a></li><li><a href="rate.html" class="sidebar-link">Rate 评分</a></li><li><a href="search.html" class="sidebar-link">Search 搜索</a></li><li><a href="numberBox.html" class="sidebar-link">NumberBox 步进器</a></li><li><a href="upload.html" class="sidebar-link">Upload 上传</a></li><li><a href="verificationCode.html" class="sidebar-link">VerificationCode 验证码倒计时</a></li><li><a href="field.html" class="sidebar-link">Field 输入框</a></li><li><a href="checkbox.html" class="sidebar-link">Checkbox 复选框</a></li><li><a href="radio.html" class="sidebar-link">Radio 单选框</a></li><li><a href="switch.html" class="sidebar-link">Switch 开关选择器</a></li><li><a href="slider.html" class="sidebar-link">Slider 滑动选择器</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>数据组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="circleProgress.html" class="sidebar-link">CircleProgress 圆形进度条</a></li><li><a href="lineProgress.html" class="sidebar-link">LineProgress 线形进度条</a></li><li><a href="table.html" class="sidebar-link">Table 表格</a></li><li><a href="countDown.html" class="sidebar-link">CountDown 倒计时</a></li><li><a href="countTo.html" class="sidebar-link">CountTo 数字滚动</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>反馈组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="actionSheet.html" class="sidebar-link">ActionSheet 操作菜单</a></li><li><a href="alertTips.html" class="sidebar-link">AlertTips 警告提示</a></li><li><a href="toast.html" class="sidebar-link">Toast 消息提示</a></li><li><a href="noticeBar.html" class="sidebar-link">NoticeBar 滚动通知</a></li><li><a href="topTips.html" class="sidebar-link">TopTips 顶部提示</a></li><li><a href="collapse.html" class="sidebar-link">Collapse 折叠面板</a></li><li><a href="popup.html" class="sidebar-link">Popup 弹出层</a></li><li><a href="swipeAction.html" class="sidebar-link">SwipeAction 滑动操作</a></li><li><a href="modal.html" class="sidebar-link">Modal 模态框</a></li><li><a href="fullScreen.html" class="sidebar-link">fullScreen 压窗屏</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading open"><span>布局组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="line.html" class="sidebar-link">Line 线条</a></li><li><a href="card.html" aria-current="page" class="active sidebar-link">Card 卡片</a></li><li><a href="mask.html" class="sidebar-link">Mask 遮罩层</a></li><li><a href="noNetwork.html" class="sidebar-link">NoNetwork 无网络提示</a></li><li><a href="grid.html" class="sidebar-link">Grid 宫格布局</a></li><li><a href="swiper.html" class="sidebar-link">Swiper 轮播图</a></li><li><a href="timeLine.html" class="sidebar-link">TimeLine 时间轴</a></li><li><a href="skeleton.html" class="sidebar-link">Skeleton 骨架屏</a></li><li><a href="sticky.html" class="sidebar-link">Sticky 吸顶</a></li><li><a href="waterfall.html" class="sidebar-link">Waterfall 瀑布流</a></li><li><a href="divider.html" class="sidebar-link">Divider 分割线</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>导航组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="dropdown.html" class="sidebar-link">Dropdown 下拉菜单</a></li><li><a href="tabbar.html" class="sidebar-link">Tabbar 底部导航栏</a></li><li><a href="backTop.html" class="sidebar-link">BackTop 返回顶部</a></li><li><a href="navbar.html" class="sidebar-link">Navbar 自定义导航栏</a></li><li><a href="tabs.html" class="sidebar-link">tabs 标签</a></li><li><a href="tabsSwiper.html" class="sidebar-link">tabsSwiper 全屏选项卡</a></li><li><a href="subsection.html" class="sidebar-link">Subsection 分段器</a></li><li><a href="indexList.html" class="sidebar-link">IndexList 索引列表</a></li><li><a href="steps.html" class="sidebar-link">Steps 步骤条</a></li><li><a href="empty.html" class="sidebar-link">Empty 内容为空</a></li><li><a href="link.html" class="sidebar-link">Link 超链接</a></li><li><a href="section.html" class="sidebar-link">Section 查看更多</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>其他组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="parse.html" class="sidebar-link">Parse 富文本解析器</a></li><li><a href="messageInput.html" class="sidebar-link">MessageInput 验证码输入</a></li><li><a href="avatarCropper.html" class="sidebar-link">AvatarCropper 头像裁剪</a></li><li><a href="loadMore.html" class="sidebar-link">loadMore 加载更多</a></li><li><a href="readMore.html" class="sidebar-link">ReadMore 展开阅读更多</a></li><li><a href="lazyLoad.html" class="sidebar-link">LazyLoad 懒加载</a></li><li><a href="gap.html" class="sidebar-link">Gap 间隔槽</a></li><li><a href="avatar.html" class="sidebar-link">Avatar 头像</a></li><li><a href="loading.html" class="sidebar-link">Loading 加载动画</a></li></ul></section></li></ul></section></li></ul> </aside></div> <main class="page"> <div class="theme-default-content content__default" data-v-c6b4f52e data-v-c6b4f52e><h2 id="card-卡片" data-v-c6b4f52e><a href="#card-卡片" class="header-anchor" data-v-c6b4f52e>#</a> Card 卡片 <a href="#api" class="anchor" data-v-2680b636 data-v-c6b4f52e><img src="../common/to_api.png" data-v-2680b636></a></h2> <div class="demo-model" data-v-05b12073 data-v-c6b4f52e><div class="model-content" data-v-05b12073><iframe scrolling="auto" frameborder="0" src="https://uviewdoc.fsq.pub/#/pages/componentsB/card/index" id="demo-modal" class="iframe" data-v-05b12073></iframe></div></div> <p data-v-c6b4f52e>卡片组件一般用于多个列表条目，且风格统一的场景。</p> <h3 id="平台差异说明" data-v-c6b4f52e><a href="#平台差异说明" class="header-anchor" data-v-c6b4f52e>#</a> 平台差异说明</h3> <table data-v-c6b4f52e><thead data-v-c6b4f52e><tr data-v-c6b4f52e><th style="text-align:center;" data-v-c6b4f52e>App</th> <th style="text-align:center;" data-v-c6b4f52e>H5</th> <th style="text-align:center;" data-v-c6b4f52e>微信小程序</th> <th style="text-align:center;" data-v-c6b4f52e>支付宝小程序</th> <th style="text-align:center;" data-v-c6b4f52e>百度小程序</th> <th style="text-align:center;" data-v-c6b4f52e>头条小程序</th> <th style="text-align:center;" data-v-c6b4f52e>QQ小程序</th></tr></thead> <tbody data-v-c6b4f52e><tr data-v-c6b4f52e><td style="text-align:center;" data-v-c6b4f52e>√</td> <td style="text-align:center;" data-v-c6b4f52e>√</td> <td style="text-align:center;" data-v-c6b4f52e>√</td> <td style="text-align:center;" data-v-c6b4f52e>√</td> <td style="text-align:center;" data-v-c6b4f52e>√</td> <td style="text-align:center;" data-v-c6b4f52e>√</td> <td style="text-align:center;" data-v-c6b4f52e>√</td></tr></tbody></table> <h3 id="基本使用" data-v-c6b4f52e><a href="#基本使用" class="header-anchor" data-v-c6b4f52e>#</a> 基本使用</h3> <p data-v-c6b4f52e>组件的头部信息可以通过参数配置，其他主体和底部的信息，需要通过<code data-v-c6b4f52e>slot</code>传入。</p> <ul data-v-c6b4f52e><li data-v-c6b4f52e><code data-v-c6b4f52e>title</code>配置标题</li> <li data-v-c6b4f52e><code data-v-c6b4f52e>sub-title</code>配置副标题</li></ul> <div class="language-html extra-class" data-v-c6b4f52e><pre class="language-html" data-v-c6b4f52e><code data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>template</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
	<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>u-card</span> <span class="token attr-name" data-v-c6b4f52e>:title</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>title<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>:sub-title</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>subTitle<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>:thumb</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>thumb<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
		<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>template</span> <span class="token attr-name" data-v-c6b4f52e><span class="token namespace" data-v-c6b4f52e>v-slot:</span>body</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
			<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>view</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
				<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>view</span> <span class="token attr-name" data-v-c6b4f52e>class</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>u-body-item u-flex u-border-bottom u-col-between u-p-t-0<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
					<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>view</span> <span class="token attr-name" data-v-c6b4f52e>class</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>u-body-item-title u-line-2<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>瓶身描绘的牡丹一如你初妆，冉冉檀香透过窗心事我了然，宣纸上走笔至此搁一半<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>view</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
					<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>image</span> <span class="token attr-name" data-v-c6b4f52e>src</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>mode</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>aspectFill<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>image</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
				<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>view</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
				<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>view</span> <span class="token attr-name" data-v-c6b4f52e>class</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>u-body-item u-flex u-row-between u-p-b-0<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
					<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>view</span> <span class="token attr-name" data-v-c6b4f52e>class</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>u-body-item-title u-line-2<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>釉色渲染仕女图韵味被私藏，而你嫣然的一笑如含苞待放<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>view</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
					<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>image</span> <span class="token attr-name" data-v-c6b4f52e>src</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>https://img12.360buyimg.com/n7/jfs/t1/102191/19/9072/330688/5e0af7cfE17698872/c91c00d713bf729a.jpg<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>mode</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>aspectFill<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>image</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
				<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>view</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
			<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>view</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
		<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>template</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
		<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>template</span> <span class="token attr-name" data-v-c6b4f52e><span class="token namespace" data-v-c6b4f52e>v-slot:</span>foot</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
			<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>view</span> <span class="token attr-name" data-v-c6b4f52e>class</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>u-icon</span> <span class="token attr-name" data-v-c6b4f52e>name</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>chat-fill<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>size</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>34<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>color</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>label</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>30评论<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>u-icon</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>view</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
		<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>template</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
	<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>u-card</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>template</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>

<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>script</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token script" data-v-c6b4f52e><span class="token language-javascript" data-v-c6b4f52e>
<span class="token keyword" data-v-c6b4f52e>export</span> <span class="token keyword" data-v-c6b4f52e>default</span> <span class="token punctuation" data-v-c6b4f52e>{</span>
	<span class="token function" data-v-c6b4f52e>data</span><span class="token punctuation" data-v-c6b4f52e>(</span><span class="token punctuation" data-v-c6b4f52e>)</span> <span class="token punctuation" data-v-c6b4f52e>{</span>
		<span class="token keyword" data-v-c6b4f52e>return</span> <span class="token punctuation" data-v-c6b4f52e>{</span>
			<span class="token literal-property property" data-v-c6b4f52e>title</span><span class="token operator" data-v-c6b4f52e>:</span> <span class="token string" data-v-c6b4f52e>'素胚勾勒出青花，笔锋浓转淡'</span><span class="token punctuation" data-v-c6b4f52e>,</span>
			<span class="token literal-property property" data-v-c6b4f52e>subTitle</span><span class="token operator" data-v-c6b4f52e>:</span> <span class="token string" data-v-c6b4f52e>'2020-05-15'</span><span class="token punctuation" data-v-c6b4f52e>,</span>
			<span class="token literal-property property" data-v-c6b4f52e>thumb</span><span class="token operator" data-v-c6b4f52e>:</span> <span class="token string" data-v-c6b4f52e>'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'</span><span class="token punctuation" data-v-c6b4f52e>,</span>
		<span class="token punctuation" data-v-c6b4f52e>}</span><span class="token punctuation" data-v-c6b4f52e>;</span>
	<span class="token punctuation" data-v-c6b4f52e>}</span>
<span class="token punctuation" data-v-c6b4f52e>}</span><span class="token punctuation" data-v-c6b4f52e>;</span>
</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>script</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>

<span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>style</span> <span class="token attr-name" data-v-c6b4f52e>scoped</span> <span class="token attr-name" data-v-c6b4f52e>lang</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>scss<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token style" data-v-c6b4f52e><span class="token language-css" data-v-c6b4f52e>
	<span class="token selector" data-v-c6b4f52e>.u-card-wrap</span> <span class="token punctuation" data-v-c6b4f52e>{</span> 
		<span class="token property" data-v-c6b4f52e>background-color</span><span class="token punctuation" data-v-c6b4f52e>:</span> $u-bg-color<span class="token punctuation" data-v-c6b4f52e>;</span>
		<span class="token property" data-v-c6b4f52e>padding</span><span class="token punctuation" data-v-c6b4f52e>:</span> 1px<span class="token punctuation" data-v-c6b4f52e>;</span>
	<span class="token punctuation" data-v-c6b4f52e>}</span>
	
	<span class="token selector" data-v-c6b4f52e>.u-body-item</span> <span class="token punctuation" data-v-c6b4f52e>{</span>
		<span class="token property" data-v-c6b4f52e>font-size</span><span class="token punctuation" data-v-c6b4f52e>:</span> 32rpx<span class="token punctuation" data-v-c6b4f52e>;</span>
		<span class="token property" data-v-c6b4f52e>color</span><span class="token punctuation" data-v-c6b4f52e>:</span> #333<span class="token punctuation" data-v-c6b4f52e>;</span>
		<span class="token property" data-v-c6b4f52e>padding</span><span class="token punctuation" data-v-c6b4f52e>:</span> 20rpx 10rpx<span class="token punctuation" data-v-c6b4f52e>;</span>
	<span class="token punctuation" data-v-c6b4f52e>}</span>
		
	<span class="token selector" data-v-c6b4f52e>.u-body-item image</span> <span class="token punctuation" data-v-c6b4f52e>{</span>
		<span class="token property" data-v-c6b4f52e>width</span><span class="token punctuation" data-v-c6b4f52e>:</span> 120rpx<span class="token punctuation" data-v-c6b4f52e>;</span>
		<span class="token property" data-v-c6b4f52e>flex</span><span class="token punctuation" data-v-c6b4f52e>:</span> 0 0 120rpx<span class="token punctuation" data-v-c6b4f52e>;</span>
		<span class="token property" data-v-c6b4f52e>height</span><span class="token punctuation" data-v-c6b4f52e>:</span> 120rpx<span class="token punctuation" data-v-c6b4f52e>;</span>
		<span class="token property" data-v-c6b4f52e>border-radius</span><span class="token punctuation" data-v-c6b4f52e>:</span> 8rpx<span class="token punctuation" data-v-c6b4f52e>;</span>
		<span class="token property" data-v-c6b4f52e>margin-left</span><span class="token punctuation" data-v-c6b4f52e>:</span> 12rpx<span class="token punctuation" data-v-c6b4f52e>;</span>
	<span class="token punctuation" data-v-c6b4f52e>}</span>
</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>style</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
</code></pre></div><h3 id="配置卡片间距" data-v-c6b4f52e><a href="#配置卡片间距" class="header-anchor" data-v-c6b4f52e>#</a> 配置卡片间距</h3> <p data-v-c6b4f52e>可以通过<code data-v-c6b4f52e>margin</code>参数配置卡片与屏幕左右的边距，以及上下卡片之间的距离，如: <code data-v-c6b4f52e>20rpx 30rpx</code>、<code data-v-c6b4f52e>20rpx 30rpx 30rpx 20rpx</code>。<br data-v-c6b4f52e>
注意：当设置<code data-v-c6b4f52e>full</code>参数为<code data-v-c6b4f52e>true</code>的时候，也就是卡片占据屏幕总宽度的时候，通过<code data-v-c6b4f52e>margin</code>配置的左右边距会失效。</p> <div class="language-html extra-class" data-v-c6b4f52e><pre class="language-html" data-v-c6b4f52e><code data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>u-card</span> <span class="token attr-name" data-v-c6b4f52e>margin</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>30rpx<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>u-card</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
</code></pre></div><h3 id="配置卡片左上角的缩略图" data-v-c6b4f52e><a href="#配置卡片左上角的缩略图" class="header-anchor" data-v-c6b4f52e>#</a> 配置卡片左上角的缩略图</h3> <p data-v-c6b4f52e>这个缩略图是可选的，显示在卡片的左上角位置，如果配置了<code data-v-c6b4f52e>thumb</code>参数(图片路径)，就会显示图片。</p> <ul data-v-c6b4f52e><li data-v-c6b4f52e><code data-v-c6b4f52e>thumb</code>缩略图路径</li> <li data-v-c6b4f52e><code data-v-c6b4f52e>thumb-width</code>缩略图宽度，高等于宽</li> <li data-v-c6b4f52e><code data-v-c6b4f52e>thumb-circle</code>缩略图是否为圆形</li></ul> <div class="language-html extra-class" data-v-c6b4f52e><pre class="language-html" data-v-c6b4f52e><code data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>u-card</span> <span class="token attr-name" data-v-c6b4f52e>thumb</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>xxx.jpg<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>thumb-width</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>60<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>u-card</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
</code></pre></div><h3 id="配置卡片边框" data-v-c6b4f52e><a href="#配置卡片边框" class="header-anchor" data-v-c6b4f52e>#</a> 配置卡片边框</h3> <p data-v-c6b4f52e>这里说的边框，有3个：</p> <ul data-v-c6b4f52e><li data-v-c6b4f52e><code data-v-c6b4f52e>border</code>配置是否显示整个卡片的外边框</li> <li data-v-c6b4f52e><code data-v-c6b4f52e>head-border-bottom</code>配置是否显示卡片内部头部的下边框</li> <li data-v-c6b4f52e><code data-v-c6b4f52e>foot-border-top</code>配置是否显示卡片内部底部的上边框</li></ul> <div class="language-html extra-class" data-v-c6b4f52e><pre class="language-html" data-v-c6b4f52e><code data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>u-card</span> <span class="token attr-name" data-v-c6b4f52e>:border</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>false<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span> <span class="token attr-name" data-v-c6b4f52e>:foot-border-top</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>false<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>u-card</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
</code></pre></div><h3 id="设置内边距" data-v-c6b4f52e><a href="#设置内边距" class="header-anchor" data-v-c6b4f52e>#</a> 设置内边距</h3> <p data-v-c6b4f52e>默认下，卡片内部的头部，主体，底部都有一个内边距，可以通过配置<code data-v-c6b4f52e>padding</code>参数去覆盖：</p> <div class="language-html extra-class" data-v-c6b4f52e><pre class="language-html" data-v-c6b4f52e><code data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;</span>u-card</span> <span class="token attr-name" data-v-c6b4f52e>padding</span><span class="token attr-value" data-v-c6b4f52e><span class="token punctuation attr-equals" data-v-c6b4f52e>=</span><span class="token punctuation" data-v-c6b4f52e>&quot;</span>30<span class="token punctuation" data-v-c6b4f52e>&quot;</span></span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span><span class="token tag" data-v-c6b4f52e><span class="token tag" data-v-c6b4f52e><span class="token punctuation" data-v-c6b4f52e>&lt;/</span>u-card</span><span class="token punctuation" data-v-c6b4f52e>&gt;</span></span>
</code></pre></div><h3 id="api" data-v-c6b4f52e><a href="#api" class="header-anchor" data-v-c6b4f52e>#</a> API</h3> <h3 id="props" data-v-c6b4f52e><a href="#props" class="header-anchor" data-v-c6b4f52e>#</a> Props</h3> <table data-v-c6b4f52e><thead data-v-c6b4f52e><tr data-v-c6b4f52e><th data-v-c6b4f52e>参数</th> <th data-v-c6b4f52e>说明</th> <th data-v-c6b4f52e>类型</th> <th data-v-c6b4f52e>默认值</th> <th data-v-c6b4f52e>可选值</th></tr></thead> <tbody data-v-c6b4f52e><tr data-v-c6b4f52e><td data-v-c6b4f52e>full</td> <td data-v-c6b4f52e>卡片与屏幕两侧是否留空隙</td> <td data-v-c6b4f52e>Boolean</td> <td data-v-c6b4f52e>fasle</td> <td data-v-c6b4f52e>true</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>title</td> <td data-v-c6b4f52e>头部左边的标题</td> <td data-v-c6b4f52e>String</td> <td data-v-c6b4f52e>-</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>title-color</td> <td data-v-c6b4f52e>标题颜色</td> <td data-v-c6b4f52e>String</td> <td data-v-c6b4f52e>#303133</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>title-size</td> <td data-v-c6b4f52e>标题字体大小，单位rpx</td> <td data-v-c6b4f52e>String | Number</td> <td data-v-c6b4f52e>30</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>sub-title</td> <td data-v-c6b4f52e>头部右边的副标题</td> <td data-v-c6b4f52e>String</td> <td data-v-c6b4f52e>-</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>sub-title-color</td> <td data-v-c6b4f52e>副标题颜色</td> <td data-v-c6b4f52e>String</td> <td data-v-c6b4f52e>#909399</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>sub-title-size</td> <td data-v-c6b4f52e>副标题字体大小</td> <td data-v-c6b4f52e>String | Number</td> <td data-v-c6b4f52e>26</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>border</td> <td data-v-c6b4f52e>是否显示边框</td> <td data-v-c6b4f52e>Boolean</td> <td data-v-c6b4f52e>true</td> <td data-v-c6b4f52e>false</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>index</td> <td data-v-c6b4f52e>用于标识点击了第几个卡片</td> <td data-v-c6b4f52e>String | Number</td> <td data-v-c6b4f52e>-</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>margin</td> <td data-v-c6b4f52e>卡片与屏幕两边和上下元素的间距，需带单位，如&quot;30rpx 20rpx&quot;，见上方说明</td> <td data-v-c6b4f52e>String</td> <td data-v-c6b4f52e>30rpx</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>border-radius</td> <td data-v-c6b4f52e>卡片整体的圆角值，单位rpx</td> <td data-v-c6b4f52e>String | Number</td> <td data-v-c6b4f52e>16</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>head-style</td> <td data-v-c6b4f52e>头部自定义样式，对象形式</td> <td data-v-c6b4f52e>Object</td> <td data-v-c6b4f52e>-</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>body-style</td> <td data-v-c6b4f52e>主体自定义样式，对象形式</td> <td data-v-c6b4f52e>Object</td> <td data-v-c6b4f52e>-</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>foot-style</td> <td data-v-c6b4f52e>底部自定义样式，对象形式</td> <td data-v-c6b4f52e>Object</td> <td data-v-c6b4f52e>-</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>head-border-bottom</td> <td data-v-c6b4f52e>是否显示头部的下边框</td> <td data-v-c6b4f52e>Boolean</td> <td data-v-c6b4f52e>true</td> <td data-v-c6b4f52e>false</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>foot-border-top</td> <td data-v-c6b4f52e>是否显示底部的上边框</td> <td data-v-c6b4f52e>Boolean</td> <td data-v-c6b4f52e>true</td> <td data-v-c6b4f52e>false</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>thumb</td> <td data-v-c6b4f52e>缩略图路径，如设置将显示在标题的左边，不建议使用相对路径</td> <td data-v-c6b4f52e>String</td> <td data-v-c6b4f52e>-</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>thumb-width</td> <td data-v-c6b4f52e>缩略图的宽度，高等于宽，单位rpx</td> <td data-v-c6b4f52e>String | Number</td> <td data-v-c6b4f52e>60</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>thumb-circle</td> <td data-v-c6b4f52e>缩略图是否为圆形</td> <td data-v-c6b4f52e>Boolean</td> <td data-v-c6b4f52e>false</td> <td data-v-c6b4f52e>true</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>padding</td> <td data-v-c6b4f52e>给head，body，foot部的内边距，见上方说明，单位rpx</td> <td data-v-c6b4f52e>String | Number</td> <td data-v-c6b4f52e>30</td> <td data-v-c6b4f52e>-</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>show-head</td> <td data-v-c6b4f52e>是否显示头部</td> <td data-v-c6b4f52e>Boolean</td> <td data-v-c6b4f52e>true</td> <td data-v-c6b4f52e>false</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>show-foot</td> <td data-v-c6b4f52e>是否显示尾部</td> <td data-v-c6b4f52e>Boolean</td> <td data-v-c6b4f52e>true</td> <td data-v-c6b4f52e>false</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>box-shadow</td> <td data-v-c6b4f52e>卡片外围阴影，字符串形式</td> <td data-v-c6b4f52e>String</td> <td data-v-c6b4f52e>none</td> <td data-v-c6b4f52e>-</td></tr></tbody></table> <h3 id="slot" data-v-c6b4f52e><a href="#slot" class="header-anchor" data-v-c6b4f52e>#</a> Slot</h3> <table data-v-c6b4f52e><thead data-v-c6b4f52e><tr data-v-c6b4f52e><th data-v-c6b4f52e>名称</th> <th data-v-c6b4f52e>说明</th></tr></thead> <tbody data-v-c6b4f52e><tr data-v-c6b4f52e><td data-v-c6b4f52e>head</td> <td data-v-c6b4f52e>自定义卡片头部内容</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>body</td> <td data-v-c6b4f52e>自定义卡片主体部分内容</td></tr> <tr data-v-c6b4f52e><td data-v-c6b4f52e>foot</td> <td data-v-c6b4f52e>自定义卡片底部部分内容</td></tr></tbody></table> <h3 id="event" data-v-c6b4f52e><a href="#event" class="header-anchor" data-v-c6b4f52e>#</a> Event</h3> <table data-v-c6b4f52e><thead data-v-c6b4f52e><tr data-v-c6b4f52e><th style="text-align:left;" data-v-c6b4f52e>事件名</th> <th style="text-align:left;" data-v-c6b4f52e>说明</th> <th style="text-align:left;" data-v-c6b4f52e>回调参数</th></tr></thead> <tbody data-v-c6b4f52e><tr data-v-c6b4f52e><td style="text-align:left;" data-v-c6b4f52e>click</td> <td style="text-align:left;" data-v-c6b4f52e>整个卡片任意位置被点击时触发</td> <td style="text-align:left;" data-v-c6b4f52e>index: 用户传递的标识符</td></tr> <tr data-v-c6b4f52e><td style="text-align:left;" data-v-c6b4f52e>head-click</td> <td style="text-align:left;" data-v-c6b4f52e>卡片头部被点击时触发</td> <td style="text-align:left;" data-v-c6b4f52e>index: 用户传递的标识符</td></tr> <tr data-v-c6b4f52e><td style="text-align:left;" data-v-c6b4f52e>body-click</td> <td style="text-align:left;" data-v-c6b4f52e>卡片主体部分被点击时触发</td> <td style="text-align:left;" data-v-c6b4f52e>index: 用户传递的标识符</td></tr> <tr data-v-c6b4f52e><td style="text-align:left;" data-v-c6b4f52e>foot-click</td> <td style="text-align:left;" data-v-c6b4f52e>卡片底部部分被点击时触发</td> <td style="text-align:left;" data-v-c6b4f52e>index: 用户传递的标识符</td></tr></tbody></table></div> <footer class="page-edit"><!----> <div class="edit-link"><a href="https://gitee.com/vk-uni/vk-uview-ui-doc.git/edit/master/docs/components/card.md" target="_blank" rel="noopener noreferrer">编辑此页（一起来纠错与优化，方便你我Ta）</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">最后修改时间:</span> <span class="time">5/26/2023, 11:47:04 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="line.html" class="prev">
        Line 线条
      </a></span> <span class="next"><a href="mask.html">
        Mask 遮罩层
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
		<script src="../assets/js/app.06a5b7ec.js" defer></script><script src="../assets/js/3.b1cc55a0.js" defer></script><script src="../assets/js/4.4b844322.js" defer></script><script src="../assets/js/30.26760ff7.js" defer></script><script src="../assets/js/19.2b0b9da7.js" defer></script><script src="../assets/js/9.ba52e2b0.js" defer></script><script src="../assets/js/6.2c513bee.js" defer></script>
	</body>

<!-- Mirrored from vkuviewdoc.fsq.pub/components/card.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 May 2025 17:31:01 GMT -->
</html>
